<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>帮助中心 - 1024导航</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#3B82F6',
                        secondary: '#10B981',
                        accent: '#F59E0B',
                        dark: '#1F2937',
                        light: '#F9FAFB'
                    },
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .card-hover {
                @apply transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
            }
            .help-nav-active {
                @apply text-primary border-primary font-medium;
            }
            .text-gradient {
                @apply bg-clip-text text-transparent bg-gradient-to-r from-primary to-secondary;
            }
        }
    </style>
</head>

<body class="bg-gray-50 font-sans text-gray-800">
    <!-- 顶部导航栏 -->
    <header class="sticky top-0 z-50 bg-white shadow-sm transition-all duration-300">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <div class="text-primary text-2xl font-bold">1024<span class="text-secondary">导航</span></div>
                <span class="hidden md:inline-block text-sm text-gray-500 bg-gray-100 px-2 py-1 rounded">v2.3</span>
            </div>

            <nav class="hidden md:flex items-center space-x-6">
                <a href="index.html" class="text-gray-600 hover:text-primary transition-colors">首页</a>
                <a href="resources.html" class="text-gray-600 hover:text-primary transition-colors">资源</a>
                <a href="tools.html" class="text-gray-600 hover:text-primary transition-colors">工具</a>
                <a href="community.html" class="text-gray-600 hover:text-primary transition-colors">社区</a>
                <a href="about.html" class="text-gray-600 hover:text-primary transition-colors">关于</a>
                <a href="#" class="text-primary font-medium">帮助中心</a>
            </nav>

            <div class="flex items-center space-x-3">
                <button
                    class="hidden md:block px-4 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition-colors">
                    <i class="fa fa-user-plus mr-1"></i> 登录
                </button>
                <button class="md:hidden text-gray-600 text-xl">
                    <i class="fa fa-bars"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- 页面标题 -->
    <section class="py-10 bg-gradient-to-b from-white to-gray-50 border-b border-gray-100">
        <div class="container mx-auto px-4">
            <div class="max-w-3xl mx-auto text-center">
                <h1 class="text-[clamp(1.8rem,5vw,2.5rem)] font-bold mb-4 text-gradient">帮助中心</h1>
                <p class="text-gray-600">解答您在使用过程中遇到的问题，提供完善的使用指南</p>

                <!-- 搜索框 -->
                <div class="mt-8 relative max-w-xl mx-auto">
                    <input type="text" placeholder="搜索帮助内容..."
                        class="w-full px-5 py-4 rounded-lg shadow-md border border-gray-200 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all">
                    <button
                        class="absolute right-2 top-2 bottom-2 px-5 bg-primary text-white rounded-md hover:bg-primary/90 transition-colors">
                        <i class="fa fa-search"></i>
                    </button>
                </div>
            </div>
        </div>
    </section>

    <!-- 帮助中心内容区 -->
    <section class="py-10">
        <div class="container mx-auto px-4">
            <div class="max-w-5xl mx-auto">
                <!-- 帮助导航 -->
                <div class="bg-white rounded-xl shadow-sm mb-8">
                    <div class="flex flex-wrap border-b border-gray-100">
                        <button class="help-nav-active px-6 py-4 text-sm transition-colors border-b-2">
                            使用指南
                        </button>
                        <button
                            class="px-6 py-4 text-sm transition-colors border-b-2 border-transparent text-gray-600 hover:text-gray-900">
                            资源相关
                        </button>
                        <button
                            class="px-6 py-4 text-sm transition-colors border-b-2 border-transparent text-gray-600 hover:text-gray-900">
                            账号问题
                        </button>
                        <button
                            class="px-6 py-4 text-sm transition-colors border-b-2 border-transparent text-gray-600 hover:text-gray-900">
                            社区规则
                        </button>
                        <button
                            class="px-6 py-4 text-sm transition-colors border-b-2 border-transparent text-gray-600 hover:text-gray-900">
                            意见反馈
                        </button>
                    </div>
                </div>

                <!-- 帮助分类 -->
                <div class="grid grid-cols-1 lg:grid-cols-4 gap-6 mb-8">
                    <!-- 左侧分类 -->
                    <div class="lg:col-span-1">
                        <div class="bg-white rounded-xl shadow-sm p-5 sticky top-24">
                            <h3 class="font-bold text-gray-800 mb-4">帮助分类</h3>
                            <ul class="space-y-1">
                                <li>
                                    <a href="#"
                                        class="flex items-center px-3 py-2.5 text-sm bg-primary/10 text-primary rounded-lg">
                                        <i class="fa fa-home w-5 mr-3"></i>
                                        平台基础操作
                                    </a>
                                </li>
                                <li>
                                    <a href="#"
                                        class="flex items-center px-3 py-2.5 text-sm text-gray-700 hover:bg-gray-50 rounded-lg transition-colors">
                                        <i class="fa fa-bookmark w-5 mr-3"></i>
                                        资源收藏与管理
                                    </a>
                                </li>
                                <li>
                                    <a href="#"
                                        class="flex items-center px-3 py-2.5 text-sm text-gray-700 hover:bg-gray-50 rounded-lg transition-colors">
                                        <i class="fa fa-paper-plane w-5 mr-3"></i>
                                        资源提交与审核
                                    </a>
                                </li>
                                <li>
                                    <a href="#"
                                        class="flex items-center px-3 py-2.5 text-sm text-gray-700 hover:bg-gray-50 rounded-lg transition-colors">
                                        <i class="fa fa-user w-5 mr-3"></i>
                                        账号管理
                                    </a>
                                </li>
                                <li>
                                    <a href="#"
                                        class="flex items-center px-3 py-2.5 text-sm text-gray-700 hover:bg-gray-50 rounded-lg transition-colors">
                                        <i class="fa fa-comments w-5 mr-3"></i>
                                        社区互动
                                    </a>
                                </li>
                                <li>
                                    <a href="#"
                                        class="flex items-center px-3 py-2.5 text-sm text-gray-700 hover:bg-gray-50 rounded-lg transition-colors">
                                        <i class="fa fa-tools w-5 mr-3"></i>
                                        工具使用
                                    </a>
                                </li>
                                <li>
                                    <a href="#"
                                        class="flex items-center px-3 py-2.5 text-sm text-gray-700 hover:bg-gray-50 rounded-lg transition-colors">
                                        <i class="fa fa-flag w-5 mr-3"></i>
                                        举报与投诉
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>

                    <!-- 右侧内容 -->
                    <div class="lg:col-span-3 space-y-8">
                        <!-- 新手引导 -->
                        <div class="bg-white rounded-xl shadow-sm p-6">
                            <h2 class="text-xl font-bold mb-6 flex items-center">
                                <i class="fa fa-lightbulb-o text-accent mr-2"></i>
                                新手入门指南
                            </h2>

                            <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
                                <div class="border border-gray-100 rounded-lg p-4 card-hover">
                                    <div class="flex items-center mb-3">
                                        <div
                                            class="w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center text-primary mr-3">
                                            <span class="font-bold">1</span>
                                        </div>
                                        <h3 class="font-medium">注册与登录</h3>
                                    </div>
                                    <p class="text-gray-600 text-sm">注册账号后可以使用收藏、提交资源等功能</p>
                                    <a href="#" class="text-primary text-sm mt-2 inline-block hover:underline">查看详情</a>
                                </div>

                                <div class="border border-gray-100 rounded-lg p-4 card-hover">
                                    <div class="flex items-center mb-3">
                                        <div
                                            class="w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center text-primary mr-3">
                                            <span class="font-bold">2</span>
                                        </div>
                                        <h3 class="font-medium">浏览与搜索</h3>
                                    </div>
                                    <p class="text-gray-600 text-sm">通过分类导航或搜索快速找到需要的资源</p>
                                    <a href="#" class="text-primary text-sm mt-2 inline-block hover:underline">查看详情</a>
                                </div>

                                <div class="border border-gray-100 rounded-lg p-4 card-hover">
                                    <div class="flex items-center mb-3">
                                        <div
                                            class="w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center text-primary mr-3">
                                            <span class="font-bold">3</span>
                                        </div>
                                        <h3 class="font-medium">收藏与管理</h3>
                                    </div>
                                    <p class="text-gray-600 text-sm">将常用资源收藏到个人中心方便日后使用</p>
                                    <a href="#" class="text-primary text-sm mt-2 inline-block hover:underline">查看详情</a>
                                </div>
                            </div>

                            <div class="bg-blue-50 p-4 rounded-lg border border-blue-100">
                                <div class="flex">
                                    <i class="fa fa-info-circle text-primary mt-0.5 mr-3"></i>
                                    <p class="text-gray-700 text-sm">新用户完成新手任务可获得50积分奖励，积分可用于提升账号等级和兑换特权。<a href="#"
                                            class="text-primary hover:underline">查看新手任务</a></p>
                                </div>
                            </div>
                        </div>

                        <!-- 常见问题 -->
                        <div class="bg-white rounded-xl shadow-sm p-6">
                            <h2 class="text-xl font-bold mb-6 flex items-center">
                                <i class="fa fa-question-circle text-primary mr-2"></i>
                                常见问题
                            </h2>

                            <div class="space-y-4">
                                <div class="border border-gray-100 rounded-lg overflow-hidden">
                                    <button
                                        class="faq-toggle w-full flex justify-between items-center p-4 text-left focus:outline-none">
                                        <span class="font-medium">如何高效使用搜索功能？</span>
                                        <i class="fa fa-chevron-down text-gray-400 transition-transform"></i>
                                    </button>
                                    <div class="faq-content hidden px-4 pb-4 text-gray-600">
                                        <p>您可以使用以下技巧提高搜索效率：</p>
                                        <ul class="list-disc pl-5 mt-2 space-y-1">
                                            <li>使用准确的关键词，如"在线PS"、"Python教程"</li>
                                            <li>使用分类筛选，先选择分类再搜索可缩小范围</li>
                                            <li>使用双引号进行精确匹配，如"免费思维导图工具"</li>
                                            <li>搜索结果页可按热度、时间进行排序</li>
                                        </ul>
                                    </div>
                                </div>

                                <div class="border border-gray-100 rounded-lg overflow-hidden">
                                    <button
                                        class="faq-toggle w-full flex justify-between items-center p-4 text-left focus:outline-none">
                                        <span class="font-medium">如何将资源添加到收藏？</span>
                                        <i class="fa fa-chevron-down text-gray-400 transition-transform"></i>
                                    </button>
                                    <div class="faq-content hidden px-4 pb-4 text-gray-600">
                                        <p>收藏资源有两种方式：</p>
                                        <ol class="list-decimal pl-5 mt-2 space-y-1">
                                            <li>在资源卡片或资源列表中，点击资源标题右侧的 <i class="fa fa-bookmark-o text-gray-400"></i> 图标
                                            </li>
                                            <li>进入资源详情页，点击页面上方的"收藏"按钮</li>
                                        </ol>
                                        <p class="mt-2">收藏的资源可以在个人中心的"我的收藏"中查看和管理。</p>
                                    </div>
                                </div>

                                <div class="border border-gray-100 rounded-lg overflow-hidden">
                                    <button
                                        class="faq-toggle w-full flex justify-between items-center p-4 text-left focus:outline-none">
                                        <span class="font-medium">账号忘记密码怎么办？</span>
                                        <i class="fa fa-chevron-down text-gray-400 transition-transform"></i>
                                    </button>
                                    <div class="faq-content hidden px-4 pb-4 text-gray-600">
                                        <p>您可以通过以下步骤找回密码：</p>
                                        <ol class="list-decimal pl-5 mt-2 space-y-1">
                                            <li>点击登录页面的"忘记密码"链接</li>
                                            <li>输入注册时使用的邮箱地址</li>
                                            <li>查收密码重置邮件（可能在垃圾邮件文件夹）</li>
                                            <li>点击邮件中的链接，设置新密码</li>
                                        </ol>
                                        <p class="mt-2">如果您未收到重置邮件，请检查邮箱是否正确或尝试重新发送。</p>
                                    </div>
                                </div>

                                <div class="border border-gray-100 rounded-lg overflow-hidden">
                                    <button
                                        class="faq-toggle w-full flex justify-between items-center p-4 text-left focus:outline-none">
                                        <span class="font-medium">如何提交资源审核更快通过？</span>
                                        <i class="fa fa-chevron-down text-gray-400 transition-transform"></i>
                                    </button>
                                    <div class="faq-content hidden px-4 pb-4 text-gray-600">
                                        <p>为了让您提交的资源更快通过审核，请确保：</p>
                                        <ul class="list-disc pl-5 mt-2 space-y-1">
                                            <li>资源链接有效且能正常访问</li>
                                            <li>填写详细准确的资源描述，突出资源特色</li>
                                            <li>选择正确的资源分类和标签</li>
                                            <li>确保资源不包含违法、色情、暴力等不良内容</li>
                                            <li>资源具有一定的实用性和独特性，不是重复内容</li>
                                        </ul>
                                        <p class="mt-2">符合以上要求的资源通常会在24小时内完成审核。</p>
                                    </div>
                                </div>

                                <div class="border border-gray-100 rounded-lg overflow-hidden">
                                    <button
                                        class="faq-toggle w-full flex justify-between items-center p-4 text-left focus:outline-none">
                                        <span class="font-medium">平台的积分有什么用？如何获取？</span>
                                        <i class="fa fa-chevron-down text-gray-400 transition-transform"></i>
                                    </button>
                                    <div class="faq-content hidden px-4 pb-4 text-gray-600">
                                        <p>积分是平台对用户贡献的奖励，可用于：</p>
                                        <ul class="list-disc pl-5 mt-2 mb-3 space-y-1">
                                            <li>提升账号等级，解锁更多功能</li>
                                            <li>兑换平台专属权益和资源</li>
                                            <li>优先审核提交的资源</li>
                                        </ul>
                                        <p>获取积分的方式：</p>
                                        <ul class="list-disc pl-5 mt-2 space-y-1">
                                            <li>每日登录：+5积分</li>
                                            <li>提交优质资源并通过审核：+20-50积分</li>
                                            <li>资源被点赞或收藏：+1积分/次</li>
                                            <li>参与社区讨论：+2-5积分/次</li>
                                            <li>完成平台任务：+10-100积分</li>
                                        </ul>
                                    </div>
                                </div>
                            </div>

                            <div class="mt-6 text-center">
                                <a href="#" class="text-primary hover:underline inline-flex items-center">
                                    查看更多常见问题 <i class="fa fa-angle-right ml-1"></i>
                                </a>
                            </div>
                        </div>

                        <!-- 视频教程 -->
                        <div class="bg-white rounded-xl shadow-sm p-6">
                            <h2 class="text-xl font-bold mb-6 flex items-center">
                                <i class="fa fa-play-circle text-accent mr-2"></i>
                                视频教程
                            </h2>

                            <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                                <div class="rounded-lg overflow-hidden shadow-sm card-hover">
                                    <div class="relative">
                                        <img src="https://picsum.photos/id/0/600/340" alt="平台使用入门"
                                            class="w-full h-48 object-cover">
                                        <div class="absolute inset-0 bg-black/40 flex items-center justify-center">
                                            <div
                                                class="w-12 h-12 rounded-full bg-white/20 backdrop-blur-sm flex items-center justify-center">
                                                <i class="fa fa-play text-white text-xl"></i>
                                            </div>
                                        </div>
                                        <span
                                            class="absolute bottom-2 right-2 bg-black/70 text-white text-xs px-2 py-1 rounded">05:32</span>
                                    </div>
                                    <div class="p-4">
                                        <h3 class="font-medium mb-1">平台使用入门教程</h3>
                                        <p class="text-gray-600 text-sm">快速了解1024导航的基本功能和使用方法</p>
                                    </div>
                                </div>

                                <div class="rounded-lg overflow-hidden shadow-sm card-hover">
                                    <div class="relative">
                                        <img src="https://picsum.photos/id/180/600/340" alt="资源提交指南"
                                            class="w-full h-48 object-cover">
                                        <div class="absolute inset-0 bg-black/40 flex items-center justify-center">
                                            <div
                                                class="w-12 h-12 rounded-full bg-white/20 backdrop-blur-sm flex items-center justify-center">
                                                <i class="fa fa-play text-white text-xl"></i>
                                            </div>
                                        </div>
                                        <span
                                            class="absolute bottom-2 right-2 bg-black/70 text-white text-xs px-2 py-1 rounded">07:15</span>
                                    </div>
                                    <div class="p-4">
                                        <h3 class="font-medium mb-1">资源提交与审核流程</h3>
                                        <p class="text-gray-600 text-sm">详细讲解如何提交资源及审核标准</p>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- 联系支持 -->
                        <div class="bg-white rounded-xl shadow-sm p-6">
                            <h2 class="text-xl font-bold mb-6 flex items-center">
                                <i class="fa fa-headphones text-primary mr-2"></i>
                                联系客服
                            </h2>

                            <p class="text-gray-600 mb-6">如果您在使用过程中遇到其他问题，欢迎通过以下方式联系我们的客服团队：</p>

                            <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
                                <div class="bg-gray-50 p-4 rounded-lg text-center card-hover">
                                    <div
                                        class="w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center text-primary mx-auto mb-3">
                                        <i class="fa fa-comments text-xl"></i>
                                    </div>
                                    <h3 class="font-medium mb-1">在线客服</h3>
                                    <p class="text-gray-600 text-sm">工作日 9:00-18:00</p>
                                    <button class="mt-3 text-sm text-primary hover:underline">开始咨询</button>
                                </div>

                                <div class="bg-gray-50 p-4 rounded-lg text-center card-hover">
                                    <div
                                        class="w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center text-primary mx-auto mb-3">
                                        <i class="fa fa-envelope text-xl"></i>
                                    </div>
                                    <h3 class="font-medium mb-1">邮件支持</h3>
                                    <p class="text-gray-600 text-sm">24小时内回复</p>
                                    <a href="mailto:support@1024nav.com"
                                        class="mt-3 text-sm text-primary hover:underline">发送邮件</a>
                                </div>

                                <div class="bg-gray-50 p-4 rounded-lg text-center card-hover">
                                    <div
                                        class="w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center text-primary mx-auto mb-3">
                                        <i class="fa fa-question-circle text-xl"></i>
                                    </div>
                                    <h3 class="font-medium mb-1">问题反馈</h3>
                                    <p class="text-gray-600 text-sm">提交问题等待处理</p>
                                    <a href="#" class="mt-3 text-sm text-primary hover:underline">提交反馈</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 底部区域 -->
    <footer class="bg-gray-800 text-gray-300 py-10 mt-10">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <h3 class="text-white text-lg font-semibold mb-4">1024导航</h3>
                    <p class="text-sm text-gray-400 mb-4">精选互联网优质资源，打造高效便捷的导航平台，助力你的工作与学习。</p>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-github text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-twitter text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-weixin text-xl"></i>
                        </a>
                    </div>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">快速链接</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="index.html" class="text-gray-400 hover:text-white transition-colors">首页</a></li>
                        <li><a href="resources.html" class="text-gray-400 hover:text-white transition-colors">资源分类</a>
                        </li>
                        <li><a href="tools.html" class="text-gray-400 hover:text-white transition-colors">实用工具</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">最新收录</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">热门推荐</a></li>
                    </ul>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">帮助支持</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="help.html" class="text-gray-400 hover:text-white transition-colors">使用指南</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">资源提交</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">常见问题</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">联系我们</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">举报不良信息</a></li>
                    </ul>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">关于我们</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="about.html" class="text-gray-400 hover:text-white transition-colors">网站介绍</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">隐私政策</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">使用条款</a></li>
                        <li><a href="team.html" class="text-gray-400 hover:text-white transition-colors">团队成员</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">免责声明</a></li>
                    </ul>
                </div>
            </div>

            <div class="border-t border-gray-700 mt-8 pt-6 text-center text-sm text-gray-500">
                <p>© 2023 1024导航. 本站资源仅供学习交流使用，如有侵权请联系删除。</p>
            </div>
        </div>
    </footer>

    <!-- 回到顶部按钮 -->
    <button id="backToTop"
        class="fixed bottom-6 right-6 w-12 h-12 rounded-full bg-primary text-white shadow-lg flex items-center justify-center opacity-0 invisible transition-all duration-300">
        <i class="fa fa-arrow-up"></i>
    </button>

    <script>
        // 回到顶部按钮功能
        const backToTopBtn = document.getElementById('backToTop');

        window.addEventListener('scroll', () => {
            if (window.scrollY > 300) {
                backToTopBtn.classList.remove('opacity-0', 'invisible');
                backToTopBtn.classList.add('opacity-100', 'visible');
            } else {
                backToTopBtn.classList.remove('opacity-100', 'visible');
                backToTopBtn.classList.add('opacity-0', 'invisible');
            }

            // 导航栏滚动效果
            const header = document.querySelector('header');
            if (window.scrollY > 50) {
                header.classList.add('py-2', 'shadow');
                header.classList.remove('py-3', 'shadow-sm');
            } else {
                header.classList.add('py-3', 'shadow-sm');
                header.classList.remove('py-2', 'shadow');
            }
        });

        backToTopBtn.addEventListener('click', () => {
            window.scrollTo({
                top: 0,
                behavior: 'smooth'
            });
        });

        // 常见问题折叠功能
        document.querySelectorAll('.faq-toggle').forEach(toggle => {
            toggle.addEventListener('click', () => {
                const content = toggle.nextElementSibling;
                const icon = toggle.querySelector('i');

                content.classList.toggle('hidden');
                icon.classList.toggle('rotate-180');
            });
        });

        // 搜索功能
        const searchInput = document.querySelector('input[placeholder="搜索帮助内容..."]');
        const searchButton = searchInput?.nextElementSibling;

        if (searchInput && searchButton) {
            function handleSearch() {
                const query = searchInput.value.trim();
                if (query) {
                    alert(`正在搜索帮助内容: ${query}`);
                } else {
                    alert('请输入搜索内容');
                }
            }

            searchButton.addEventListener('click', handleSearch);
            searchInput.addEventListener('keypress', (e) => {
                if (e.key === 'Enter') {
                    handleSearch();
                }
            });
        }
    </script>
</body>

</html>